<?php
class ORMpz_user extends ORMBase {
  public function __construct() {
    parent::__construct('pz_user');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->track_id = isset($object->track_id) ? $object->track_id : '';
    $epObject->name = isset($object->name) ? $object->name : '';
    $epObject->account = isset($object->account) ? $object->account : '';
    $epObject->password = isset($object->password) ? $object->password : '';
    $epObject->type = isset($object->type) ? $object->type : '';
    $epObject->email = isset($object->email) ? $object->email : '';
    $epObject->is_akl = isset($object->is_akl) ? $object->is_akl : 0;
    $epObject->is_syd = isset($object->is_syd) ? $object->is_syd : 0;
    $epObject->is_mel = isset($object->is_mel) ? $object->is_mel : 0;
    $epObject->is_xtrao = isset($object->is_xtrao) ? $object->is_xtrao : 0;
    $epObject->is_nyc = isset($object->is_nyc) ? $object->is_nyc : 0;
    $epObject->is_bne = isset($object->is_bne) ? $object->is_bne : 0;
    $epObject->branch = isset($object->branch) ? $object->branch : '';
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->track_id = $epObject->track_id;
    $object->name = $epObject->name;
    $object->account = $epObject->account;
    $object->password = $epObject->password;
    $object->type = $epObject->type;
    $object->email = $epObject->email;
    $object->is_akl = $epObject->is_akl;
    $object->is_syd = $epObject->is_syd;
    $object->is_mel = $epObject->is_mel;
    $object->is_xtrao = $epObject->is_xtrao;
    $object->is_nyc = $epObject->is_nyc;
    $object->is_bne = $epObject->is_bne;
    $object->branch = $epObject->branch;
    return $object;
  }
}
?>
